package  com.pcbly.web.business.table;

/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import java.util.List;

import com.pcbly.web.persistence.table.ColumnPropertyDao;
import com.pcbly.web.bean.table.ColumnPropertyBean;
import com.pcbly.web.business.BaseServiceImp;
import com.pcbly.web.components.hibernate.support.Page;

 
public class ColumnPropertyServiceImp extends BaseServiceImp<ColumnPropertyBean> implements ColumnPropertyService {
	 public ColumnPropertyServiceImp() {
		super();
		// TODO Auto-generated constructor stub
	}
	private ColumnPropertyDao columnPropertyDao;
	
	public void setColumnPropertyDao(ColumnPropertyDao columnPropertyDao) {
		this.columnPropertyDao = columnPropertyDao;
	}
	
	@Override
	public ColumnPropertyBean getColumnPropertyBeanById(String id) throws Exception {
		// TODO Auto-generated method stub
		return columnPropertyDao.get(ColumnPropertyBean.class,id);
	}
	
	@Override
	public void removeColumnPropertyBeanById(String id) throws Exception{
		columnPropertyDao.removeColumnPropertyBeanById(id);
	}
	
	@Override
	public void removeColumnPropertyBeanByIds(String ids) throws Exception{
		columnPropertyDao.removeColumnPropertyBeanByIds(ids);
	}
	
	
	@Override
	public ColumnPropertyBean saveColumnPropertyBean(ColumnPropertyBean table) throws Exception{
		return columnPropertyDao.saveColumnPropertyBean(table);
	}
	
	@Override
	public ColumnPropertyBean updateColumnPropertyBean(ColumnPropertyBean table) throws Exception{
		columnPropertyDao.saveObject( table);
		return table;
	}
	public Page<ColumnPropertyBean>  findColumnPropertyBeanByCond(ColumnPropertyBean bean,
			Page<ColumnPropertyBean> page, String orderByName, boolean asc)
			throws Exception{
		return columnPropertyDao.findColumnPropertyBeanByCond(
				bean, page, orderByName, asc);
	}

	@Override
	public List<ColumnPropertyBean> findColumnPropertyBeanByColumnId(
			String columnId, String iflag) throws Exception {
		// TODO Auto-generated method stub
		return columnPropertyDao.findColumnPropertyBeanByColumnId(columnId, iflag);
	}
}
